package com.mall.service;

import java.util.List;

import com.mall.bean.Blog;
import com.mall.bean.Goods;
import com.mall.bean.Leave_msg;

public interface IBlogDetailService {
	//展示博客详情
	public Blog findBDetail(Blog blog);

	//查询父表留言
	public List<Leave_msg> showParent(Leave_msg leave_msg);

	//查询父表留言2
	public List<Leave_msg> showParent2(Leave_msg leave_msg);

	//查询子表留言
	public List<Leave_msg> showChild(Leave_msg leave_msg);

	//插入子表
	public int addChildren(Leave_msg leave_msg);

	//插入父表
	public int addParent(Leave_msg leave_msg);

	//查询父表id以及留言用户名
	public Leave_msg findParent_id(Leave_msg leave_msg);

	//查询子表留言以及留言人，对谁留言
	public Leave_msg findChild_id(Leave_msg leave_msg);

	//查询父表最后一行
	public Leave_msg findParentLast(Leave_msg leave_msg);

	//查询子表最后一行
	public Leave_msg findChildLast(Leave_msg leave_msg);

	//删除父留言
	public int delete_PMsg(Leave_msg leave_msg);

	//删除子留言
	public int delete_CMsg(Leave_msg leave_msg);

	//查询父评论有多少个子评论
	public int findChildNum(Leave_msg leave_msg);

}
